﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Public;
using DAL;

namespace BLL
{
    public class KhaiSinhBLL
    {
        public static void InsertKhaiSinh(KhaiSinhPublic ks)
        {
            KhaiSinhDAL.InsertKhaiSinh(ks);
        }
        public static KhaiSinhPublic LoadKhaiSinhByMaKS(int MaKS)
        {
            return KhaiSinhDAL.LoadKhaiSinhByMaKS(MaKS);
        }
        public static int CountKhaiSinhByYear(int firstyear, int lastyear)
        {
            return KhaiSinhDAL.CountKhaiSinhByYear(firstyear, lastyear);
        }
        public static KhaiSinhPublic LoadKhaiSinhBySoKS(int SoKS)
        {
            return KhaiSinhDAL.LoadKhaiSinhBySoKS(SoKS);
        }
        public static bool TestSoKhaiSinh(int SoKhaiSinh)
        {
            return KhaiSinhDAL.TestSoKhaiSinh(SoKhaiSinh);
        }
        public static void UpdateKhaisinh(int SoKhaiSinh, int NoiSinh, int MaNKC, int MaNKM, string NguoiDangKi, byte MaQH, int CanBoHoTich, int NguoiCap, DateTime NgayCap, int NguoiNhan, byte ChucVu, byte ChucVuNguoiNhan,int MaKS)
        {
            KhaiSinhDAL.UpdateKhaiSinh(SoKhaiSinh,NoiSinh, MaNKC, MaNKM, NguoiDangKi, MaQH, CanBoHoTich, NguoiCap, NgayCap, NguoiNhan, ChucVu, ChucVuNguoiNhan,MaKS);
        }
        public static void DeleteKhaiSinh(int MaKS)
        {
            KhaiSinhDAL.DeleteKhaiSinh(MaKS);
        }
        public static int CountKhaiSinhByDay(DateTime batdau, DateTime ketthuc)
        {
            return KhaiSinhDAL.CountKhaiSinhByDay(batdau,ketthuc);
        }
    }
}
